package com.ysd.lis.controller.bac;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.bac.BacCulProResult;
import com.ysd.lis.entity.bac.BacDescOption;
import com.ysd.lis.entity.bac.BacStainingOptions;
import com.ysd.lis.service.bac.BacCulProResultService;
import com.ysd.lis.service.bac.BacDescOptionService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wanghuaixing
 * @since 2024-04-12
 */
@RestController
@RequestMapping("/bac-cul-pro-result")
public class BacCulProResultController extends BaseController {

    @Autowired
    BacCulProResultService bacCulProResultService;

    @ApiOperation("查询")
    @GetMapping("/findBacDescOptionList")
    public Result findBacDescOptionList(BacCulProResult bacCulProResult) {
        return bacCulProResultService.findBacDescOptionList(bacCulProResult);
    }

    @ApiOperation("增加")
    @PostMapping("/addBacDescOption")
    public Result addBacDescOption(@RequestBody BacCulProResult bacCulProResult) {
        return bacCulProResultService.addBacDescOption(bacCulProResult);
    }

    @ApiOperation("删除")
    @PostMapping("/deleteBacDescOption")
    public Result deleteBacDescOption(@RequestBody BacCulProResult bacCulProResult) {
        return bacCulProResultService.deleteBacDescOption(bacCulProResult);
    }

    @ApiOperation("修改")
    @PostMapping("/updateBacDescOption")
    public Result updateBacDescOption(@RequestBody BacCulProResult bacCulProResult) {
        return bacCulProResultService.updateBacDescOption(bacCulProResult);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteBacDescOption")
    public Result batchDeleteBacDescOption(@RequestBody List<BacCulProResult> bacCulProResultList) {
        return bacCulProResultService.batchDeleteBacDescOption(bacCulProResultList);
    }

}
